package com.moyun.common.exception;

import com.moyun.common.enums.CodeEnum;
import lombok.Data;

@Data
public class RequestParamException extends RuntimeException {
    /**
     * 响应状态码
     */
    private int code;
    /**
     * 响应信息
     */
    private String message;

    /**
     * 满参构造
     * @param codeEnum
     */
    public RequestParamException(CodeEnum codeEnum) {
        this.code = codeEnum.getCode();
        this.message = codeEnum.getMsg();
    }
}
